tests: make a few globals statics

ld was warning that the size of path changed, rightly so.