Adapted some test code to lang.
class move/rename
Fixed possible NPE on plugin shutdown.
Some refactoring of lang and wizard test.