Updated string unit test with better error expectations.