Added a test for endpoints wrapped in structs.