Refactor search to inject instagram api. Add tests with stubbed data.