return -1 when the test has failed