remove duplication of same features in different functions names
fix test.php with correct function names
only set request_url when _SERVER variable is set