plugin init and tests