fix tests when redis not running, add test for lua script loading