Add Mockery when provisioning vagrant

resolves #5623
Refactor authentication config form tests and fix auth backend validation

refs #6011
fixes #5712