ACCUMULO-1978 fixed compaction and flush of metadata table and added test