changed right ascension formula to apparent longitude and fixed tests