Instagram test and Instagram node fixes

This is my work on adding the Instagram tests. A few issues might need to be sorted. I'll make comments in-line detailing these.
This is hard to read and wouldn't be bulletproof but works for the tests. I don't expect the utility function to be used anywhere else.