TST/BUG : fix minor errors, add tests

 - make sure the angles are sorted so integration works
 - missing factor of .5