fix test and lint error