Eliminate network dependency for unit tests