tests: Add test case to validate free-list indexes