Added test.
Added transLength method.