Events#edit via ajax test - refactoring