Add test of apparent position/HA calculation and fix bug in HA found by test

Closes #11 and #53