fix crash in comp_test, still a problem of failed test
Another thing needed in comp_test
Fix up step calculation so that it's read from input (and possibly done
correctly?)