Buffer over-reads in directory and rendcache tests

Some of the directory and rendcache tests contain buffer over-reads caused by using strings that are too short.