add tests for setLength(), getLength() and getStart()