fixed wording of tests
added type check for compose
added handling of "not" operator
added whereCacheId ...
added tests for sort and where cache id