resident controller and testing