test for invalidMessage directive