Add more unit tests for the new IAccessor functionality.

Also stop using the IMetadata interface for the moment... need to
figure out how to use it in a good way.