update valid test routine (test ok)