Add Pivotal tests and share plugin test code