Add pragma_readblock.h to the automake rule for runtests sources

Fix type issue (int iter -> long iter)
Fix some test issues.