Changed astar and added printing time for astar tests