Added headers param and a test