improve tests for PublicContentServlet and add support for export to flat content