Fixed #47 with unit test (test case from issue)
release v1.3.2