adds length unit tests.