Test error message with uniqueness