Tests for controller and models