Fix tests for uploaded images