adding tests for goal controller