Moved path building after checking if relative path is NULL
Change regressive read_from_file to simply is_in_file, which read the contents and check via strstr if specific substring is in the file
removed slashes for roots to make relative paths
Added test case with testing invalid requests