added better debugging to test bench