add unit test

complete the 1st version of unittest(logprocessor)