update test and example