added tests for the demo scripts