mock network client for testing