User migration fix, and basic unit test

Implements basic testing of the user export. Checks for export_info.json and files app.