fixed perl stacktrace usage
added first round of tests for psgi input with offset