Adds tests to plugin