Refactor spider cache tests