refactor test

refactor test and delete some class from directory test.