fix test to run with nose