Fix test so setting doesn't leak