refactored acceptance test