add edge.when pre-validate; add edge.when api tests
replace year_* fields with when in app