tests
#3846: Added wrapper for functions which doesn't create stack frame
#3846: Added choice of wrapper into writeRedirectionCode
added comments