Add document usage count tests