tests copied from mediawiki suite