Test demo code