updated unit tests for controllers