* Fixed a bug when getting data from redis
* Added a waiting time in encoding tests before running asserts