Added an integration test for _export.

Started to add testing support so that when new features are added, it is easier to verify behavior and catch regressions.