Add simple test for the sugar functions

The logic for the sugar functions has already been tested, but to ensure no
typo renders a function not able to run let's just run it and see if it raises
an exception.