created test to headers method