Added test for intercepting SQL to determine if cache is used