Write tests for redis module