WIP: Integration testing
Refactored copy tasks
Merged branch 'master' into test
Slight improvement of error handling
Added logout method and improved error handling
Added integration tests