Add tests for user-agent, headers, and args.

TestCase updated to check the body for a string, or list of content.
Ignore vim swap files.