add dump state test api