Use h5d_finalizer to be consistent with other finalizers.
Turned some code from cmd/ in to tests runnable with go test
Merge pull request #5 from kisielk/master

Added some tests and a minor finalizer change for h5d