added some logging to test