add testcode