Add test of calculate-position-delta