refactor test testNumberOfGoals