Added unit test for DependencyListener #143