add debug base test code