Fix bug in is_data_valid test
Add more specific test for is_data_valid and is_model_valid functions