Remove uses of deprecated String functions from tests.
Merge pull request #185 from yallop/tests-deprecated-string-functions

Remove uses of deprecated String functions from tests.