Add unit tests for CelestialCoord and fix a few bugs.