fix h5py/pytables import interactions
convert test to use pytest fixtures