refactor test codes.

- split core test.