tests script returns 1 on failure