Fixed incorrect username specification parsing, added test.