Tests and updated code to support for dates before 1900