[MAINT] Add unit test for the computation of orientations.

As the title says.