Added model interface and its testing (validation and error)