add tests for interface injection