Stimulus bill narrowly survives Senate test vote