Add a number of test-cases for mad_deps module