Upload/download/details tests (+ bug fixes found through testing)