Fix tests for quantity field