Remove duplication of creating dir for static server in tests