validation tests working