Add support for unsafe tests in testall