Add a test script to ensure samples sanity