Added unit test for #199