Test for raising error when quantity is less than or equal to zero