tests for model and Rest_api completed