Added integration tests for fetching within transaction block