quantity conversion and more tests