Added cache tests with cachegrind.