#28, adding unit and integration tests to highlight the bug.