Added unit test to reproduce issue #24