tests for controllers