Added some assertions to export command