add trace mock;fix tests
add smoketest
update trace test
fix #3; make logger can be set