improved validation tests