Change test code to demo code