Fixed FileTest, made File class more testable, fixed nginx integration