test for handling complex cache keys