Exception for bad Julian year zero.

Added more tests.