fix factor test to allow zero