Test equality with sha/serialize
Remove TODO
Fix docstring