Add test for registration number DOB check.
Fix bugs in obj_to_dob date format converter.