Computation of correct offset values in order to make correspondence (with adjusting to periods) between Domain of WLine and surface domain. Creation of test cases for this issue. Small correction in the test case.