stricter error checking for /in
split building out of test script