test fail/pass detection