Adding logging to test