Test insert data length and output if debug is on