Fixes formatting issue
Fixes repository tests
Sets host parameter for url creation