some unit testing, and fixes for interwiki redesign