Add debug hook for completion, for integration tests