Trying to fix error with last test

Headers already set error originates from line 397 and it may not be
necessary