More graph exercises and refactoring of search tests