Add Js tests for (not)clearing dates in (sub)section.