Refactor tests using chains of helpers