update demo and test