fixed tests: no more reading target.string in constructor