Test for bidirectional search

The tests have not covered the bidirectional search algorithm. This test is now added.