Add test cases for import status
Move import-related js to import.js