where does the quantity get set? i would have expected code in the test to set mock usage somewhere