test case appendSlashSafe method.