RM6180

Deadlock fix and off-by-one error.

Fixing unit tests. One-by-one. By one.

Unit tests fixed.

Removed super cool log messages.
Merge pull request #125 from roaet/RM6180

RM6180