added unit test for new bug