added tests to controllers