plugins need to return a hash to make using them more consistent; added plugin test
Changed module to suit plugin standard of returning a hash not a function