added quality test for 0 quality