Add tests for RequestStack class