Add test cases for string and composite return types