Tests ready for case-insensitive usernames

See #169