If compiled in debug mode, the debug binary should be tested, in release mode the release binary has to be invoked. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>