renamed event attr type to event_type and finished event-related spec except for templates
Merge branch 'spec_testing'