added function for DebugForm.
comment out test logics by test target big modified.