Refactor tests inline vars