add init function for test, flush the redis cache