Fix graph tags test on freebsd

This is an update of #5437 and removes changing the dir permissions from 0600 to 0700.  It just includes setting the gid and uid in the tests. 

Closes #5437