add debug switch for better performance
fix wrong default name for test type