Testing&coding controller and model classes