update examples, fix test.