Renamed plugin init method to 'test' and added ability for plugins to define custom init methods