add test and fix 'data' property of MsgQuery