Add tests for xml import/export between different modulestores

holy nested contexts! comments here would be great to help a casual reader understand what's happening here