Add new test script for reference manual examples