Fix warning in a test for property