Test cases, order logic corrected, exceptions thrown on illegal negative integers
test