fixing global name error in home page test