fixed tests, configuration moved to configure func, redis_conn now local