Updated plugin lifecycle to use test