first commit for query_cache test
reformat code
tests for cacheBehavior : test generated sql and if methods mexists