test(model): Test that promise error is called when promise rejects