fix some name bug and add a simple test