added tests for Export and History commands