refactor acceptance test