Add more traces in case of failure when testing with actual plugins
(cherry picked from commit 0b2ff1e)