fix test code
fix example & write readme example