add logging to test