fix some detail and test file