The problem with that is you are trying to send a GM whisper inside a roll template output that is already a public roll. The only way to turn it into a whisper (separate from the template) would be to get the code for that roll and write a character ability with the whisper and that roll done on separate lines. You can find the shortcut to calling some rolls from the sheet on the wiki page found here:
https://wiki.roll20.net/Pathfinder_Official#PC_Rolls
I don't see traits on that list, so I dragged a trait to the quick macro bar, rolled it, and then put my cursor in chat and hit the up arrow to see what the command is for traits. It looks like your test is the first trait on the list, so it would look something like this (replace Snagshul with the correct character name):
%{Snagshul|repeating_abilities_$0_trait}
/w gm Test

That was made as an ability (macro) on the Attributes & Abilities tab of the character sheet.
If your player wants to do very many of these, or you need them for your style of games, you might consider setting up a chat menu to cut down on the number of token action buttons (or macro bar buttons) that would be needed to call all the custom rolls.
https://app.roll20.net/forum/permalink/5927072/