update example and test