Adding test. Does not behave as we would like (error record does not get saved), but that's how the platform works if you use the Database DML methods...