Added some tests and a minor finalizer change for h5d