Similar as in other test case, added new test using `headers` and deprecated the old one