Makes matches on UID case insensitive

Also fixes a couple of tests that were passing when they shouldn't
because `false != nil`