fixed error-checks in test-script