Add some more tests, and fix a bug in sym_set_str().