On webdav sesssions, loginname was compared to username which does not need to match necessarily
coding style
coding style
adjust test