Fixes test cases and saving thumbnails

I was having some small problems with running tests on django > 1.3 since django.test.simple.run_tests helper was removed; additionally the tests case needed updating for the change where files were named with hashes.