Fix loading of calories for a given day, and use jasmine spyOn for mocking other methods