Added tests for the imgur module.
Fixed off-by-one error in imgur module.
Merge branch 'tests'