validade tests was not exiting gracefully.