Fixed a bug (in my understanding of longitude as well as the code). Also additional tests