Improved validation test