Added tests for model layer validation