Update implicit injection test cases and fix bugs