update examples

Update the examples in test directory.