Rewrite gofer plugin unit tests and add missing tests.