Add some tests for the main plugin components and update the docs