Various tests etc. Lots of things

Including plugin structure etc.