add console logging to test