move the export validation code to test

Change-Id: Iaafe30a1095bd5b6dac3637c394818ba8bd848ce