fix some minor bugs in configuration.
remove unnecessary library import from these test unit.