Add configurable callback to Request service tests
Fix template compilation problem in tests