Add tests for xml import/export between different modulestores

Feel free to also add in comments throughout the code - will be easier to understand