added negative number check and changed the test to iteration through a list instead of multiple assert statements