Refactor some Slm test steps.