add debug logging to test