improve sample test code
bump kakashi version to 0.3.1