Fixed broken test

Ensure we have an object and not nil
Added test for setting the @header attr