correction bug astar + tests