IBlockStorage.MarkBlockInvalid test, fixed esent bugs as a result