added tests for base controller