internal usage of $_SERVER variable has been replaced with $app->server(),
RequestRewrite class, useful for simulating requests in tests,
appProvider dataProvider for all tests,
updated demo test