Updating test to not use deprecated e.message