add test case for interface injection