Clean up in JmsMessage a bit, adds more test coverage.