[WIP] Unify controller and integration tests

This pull request is for the following project: https://github.com/rails/gsoc2014/wiki/Ideas#unify-controller-and-integration-tests
From what I found, Rack converts all params to string. Therefore, the test should reflect the correct form of parameters return by Rack.