Implement tests for controllers