add test 'check-available-stock' #533 and fix #526

test 'check-available-stock' 
test $QUANTITY

display product is available or out stock