Adapted user integration tests for new rest api implementation