started to write tests for controllers