Test for file uploading via POST to API
Tests are supplemented and refactored
Allow users to regenerate authentification token