create base class for testing rewriting method on each object
refactor product rewriting test case