add tests for CardinalDirection class, issue #65
fix typo in JavaDoc [skip ci]