test edit product; add some util