write product model tests