Add unit test for type_date custom profile field

PHPBB3-12514