clean up test codes, also use new format for code hint tests