Fixes for #3 and #4

Updates tests, CCMagneticModel and NSDate+DecimalYear to fix boundary date checks.