added test page function and made URL generator get languages directly