Modified the unit test such that all 13 directions are tested. The code computes the interactions correctly in all directions.