determineAllowedTranslation works, and so does its unit test
Added some more cases to the determineAllowedTranslation unit test and added a test for PiecewisCurve.contains