Clear API instance after each test