Add unit test for goals and begin goals integration tests