added a test for length