properly testing login with null credentials

this is a BC break adding a new method to the implementation loader. but it is necessary to be able to properly test the case of credentials = null permitted by the RepositoryInterface

/cc @Piotras