Added test stub for PluginLifecycle that shows how it probably should be used in an embedded environment, cleaned tests.