Check return value of tests