move test code into plugin