Refactored tests. Created mock APIs that simulate instagram and a generic API. APIs setup and teardown for tests.