refactored tests to use  and createController()