Fix message check in spec test for message changed in bz 1046962