controller for test