Added my valid test check function