adding unit tests for controllers