Fixed test checking for OS specific exception message.