added test case for trial controller