Added moq. Refactor controller to use service. Update test.