9(d) of the United States Housing Act of 1937 ( 42 U.S.C. 1437g(d) ). (B) The public housing Operating Fund program under section 9(e) of the United States Housing Act of 1937 ( 42 U.S.C. 1437g(e) ). (C) All programs for rental housing assistance under section 8 of the United States Housing Act of 1937 ( 42 U.S.C. 1437f ). (6) Use of housing assistance amounts for testing Notwithstanding any other provision of law, amounts made available under the following provisions of law may be used for costs of testing individuals for controlled substances for purposes of compliance with this section, as follows: (A) Amounts made available under the public housing Operating Fund program under section 9(e) of the United States Housing Act of 1937 ( 42 U.S.C. 1437g(e) ) may be used for such testing for residents of, and applicants for residency in, public housing. (B) Amounts made available to a public housing agency for administrative fees under section 8(q) of the United States Housing Act of 1937 ( 42 U.S.C. 1437f(q) ) may be used for such testing for individuals on behalf of whom rental assistance under such section is provided by the agency and applicants for such assistance. (C) Amounts made available for project-based rental assistance under section 8 of the United States Housing Act of 1937 ( 42 U.S.C. 1437f ) may be used for such testing for residents of, and applicants for residency in, dwelling units in housing projects for which such assistance is provided. (7) Definitions For purposes of this subsection, the following definitions shall apply: (A) Applicable administrative entity The term applicable administrative entity means— (i) a public housing agency, with respect to covered housing assistance administered by such agency