Added sample of test for Query.
Separate the Json Type related code from Types.hs to TypeHelper.hs.