Rearranges DB cache unit tests
Creates Predis client if not given via the constructor