Fixed test on 'cached' parameter.

'cached' parameter is boolean, not string
Merge pull request #6997 from ricard33/patch-1

Fixed test on 'cached' parameter.