The torsions are now in work

The problem comes from shadow copying, fix by deepcopy
Add a simple testing script for coordinates calc