Added test cases for #1188

closes #1188.  #1188 seems to be fixed with [this](https://github.com/padrino/padrino-framework/commit/34d065456a2f60f32a330f53d8acdfdd0a2e22fc) PR.  Just adding regression tests for it.