Test error message handling in model setter