Fixed little bug + added UploadBehaviorTest