Implemented model validation tests.