adapt tests to debug option fix