add spec for custom validation bugfix