refactoring the `set!` unit test to not depend on `do`