add tests for controllers