unit test for PositionRepository::createConstraintsFromDemand added