Unfortunately, that test would pass even without the default sender:  he "Unix From" header will be set regardless of whether the 'sender' is present.  You want to be testing for 'From: nobody' instead.