(#11) Increase authrealm coverage and add param validation.