adding unit tests to determine length