Added unit test for reported issue (issue-271)