Fixed a syntax error preventing compiling in test_list_goals.py, and added it to the pants_test/tasks/BUILD testing suite.