Added unit tests for public controllers.