Fix a bug in Wikicode.set(); implement test_set() and test_index()