throw on error on test