Updates events test to check for err.msg instead of assuming it's defined