fix invalid home url
fix Main Controller tests