numbers > 1000 are now excluded from the sum added tests to cover various scenarios with large values