Refactor side-effect test to new model.