Added tests and unit tests for year ranges and fixed problem with 'make diff-test'.