messaging: improve test to reject expressions