Try to add the realm as suffix while doing a basic authent and then without it

Fix tab and space in the file

Add unit test for usage of realm during basic authentication