Added the setCredentialsHandler + the command + tests