added getCode() methods to Query & Message for getting human code of TYPE and added some test cases around that