wrote tests for getImportsClosure