changed test script to --check