added tests project and first test, refactored upload