Refactored tests and added test for inaccessible directory to store images in
Removed pointless linebreaks
Adapted test for uuid generation to test for file extension and proper naming (e.g. only single dots followed by extname)