add test for primary-date option