be_invalid_with_duplicate tests and more