Improved unit test for import analysis