added prepareHeaders call for @expected data