#125 Add tests for the bug