Added unit test for length property for string