Fixes unit tests for imgur populator.