Added example code from README as a test script