add a test case to dependence injection