code demos and tests