Remove bad testcode and gofmt everything

I'll probably grab some of that testing code out of the revision history when it
comes to actually writing tests...