add install
move to src
fix test