Fixed and added tests for widthAtLength