Increasing test coverage.
Making convert testable. Removing cog code from convert.go.
Example for go sql interface.