attempting to exit with error code when tests fail