Add test for getLength method
Add getLength method