Date of birth refactored and tested