fixed error in test_picks.py