Fix the way we decide if hasNext is true or not in WALReader. Unit tests...

... for all classes.
Please consolidate all these WAL related tests, in a single testsuite. WriteAheadLogSuite.