update testcode