xwen: miscellaneous tests; coverage is now at 60.2%