Fixed unit-test for issue #47