Remove use of ~str in tests

Remove use of ~str in tests now that ~"" literals no longer exist.