Added tests for DistanceRestraints.