test-lib: parse options in a for loop to keep $@ intact