Require correct username_key for custom backend
Fix broken test and add test for broken backends