FIX: fix regression test so that it can pass even not in debug mode