WIP: improved tests of compute_displacements()
next I should improve the function compute_displacements()