refactored edit policy test