Adds record filtering tests.