adding some tests for validation errors