changed infinite loop to no overflow
test fixes 6
shell test script added, testing complete