Change upload end point
Fix upload api in tests
Fix #8