Prevent fatal eror in tests