fix some typos in comment
remove unused imports in test
fix typo in comment
change test to avoid failures if the GC environment isn't clean before running it