test case for over 1000 added.
function for over 1000 added to main.