Add tests for resource export
Add test for resource import