Added tests to validate models and controllers