Added unit test to show dependency bug