Added matcher for testing set immutability

All sets returned by Document are expected to be immutable. This
changeset adds tests to ensure that the get*() methods return only
immutable sets.