Put inject_random_error within #if