Add full test coverage for the classes in jms.meta and enforce that id
values cannot be null on creation plus fix a few other minor issues.