fixes #3 and moved test into plugins where it belongs