Created a test that will throw an exception if negative numbers are used