Added new tests for QueryCacheProfile and Connection