moved test stuffs to the test package.