fix tests, add plugin manager test