adding tests for string length function