Implement FileContentSqlDao tests; fix FileHistorySqlDao tests