Transition to thin for test.

Mongrel gone. So I made is minimal fix to use thin to run tests.

Note: this patch is really ad-hoc one!
Please check and apply if it's acceptable....