Add test cases for Hash and Array for to_param and to_query