added tests for controller.
added tests for provider.