Fix for importing repositories.
Functional tests for importing and exporting repositories.
Functional tests for importing and exporting repositories.