Merge "Browser tests: extract commonly used getTestString function"