Remove mocks from range tests of mimetype and license indexers.
Also fix hash types and add type checks.