Adding debugging test code