fix bugs in test.base, and add files