Add validation error unit tests