Created tests for controllers