add tests for elasti cache factory