Write unit tests for weather controller.