add testcode for InnerProduct