add test support

For example usage see https://github.com/jhudson8/react-plugins-united-example/commit/cf610e564e7cd9e98e6ac3cebfa6a7fa755307a8