fix params passing issue
add tests for resource headers
why weren't these committed?