Refactored rejectMessage return type

rejectMessage now returns an array of reject code and message.
Updated unit tests.