test: additional fix, including the fail when debug is enabled