Add unit tests for photo uploads