Added tests for image uploads