Fix unit test don't run when "debug" mode is on