add a simple unit test framework and apply to string search algorithms