Add tests for reverse route of A* and IDA* test