Add code injection test inspired by @thomasst