Added unit test for controllers and fixed codeception TestCase problems