Related to AMQ-4563: Added test cases where we select against the JMSMessageID and fixed a bug that was causing it to fail.