fixed more bugginess with ReadMessageIndex and added tests for it
2 files changed