If we are going to have unit tests, might I suggest a parallel directory structure?
/test/persist/serialize.go
or perhaps
/lib/test/persist/serialize_test.go

Having the test files in the same place creates annoying clutter in the packages.