Add KDC tests

Current fails.
Fix silly bug

Seriously? Oops.