Create test helpers

Added NSDictionary helper to convert dict of strings to url encoded
parameters string.

Added NSURL parameterComponent helper to convert url parameters to
dictionary of key values.