Fixed bugs and add some tests
Merge branch 'master' into h5py
Added h5py read tests. Fixed bugs.