adding some debug code to tests