added console logging to test