Skip tests if h5py is not installed

NumPy provides a decorator that allows you to skip a test if a condition is
true.