Example of unit testing network requests