This test script is not perfect but would do.