Convert julian_date() tests to precompute