Added get_goals and tests.