adds tests for torus translation and updates code to reflect issues