Basic error handling in test.model.js