added tests for controllers