admintool refactor upload 8: add unit test code