Add a test which confirms indexing the protected field.