add test for single file module; normalize converted absolute path
fix a bug related to package.main; add tests for directory modules