Implement OldAtan end-to-end test, and remove some runtime errors.
Fix a end-to-end test.