Adding return $this on setCacheDir and testing actual cache dir