Implemented testes for model