Use memory_store in test env, fix travis-ci issues