fixed the admin upload bug that prevent the release and provided unit tests