Added unit test for a condition that was not tested anywhere