Update tests for fixing security issues.
Merge pull request #6 from BruceDai/fix_security_issues_2

Update tests for fixing security issues.