Feature/modify spec

Modify failed spec

* Use rspec 3.0.0
* Mocking redis and memcached
* other refactorings