Added tests for length (issue #11)