Implemented initial unit testing support for new data interface.

All 575u tests pass. The relevant integration test also passes.