Replace defun by macrolet in test

Signed-off-by: Julien Danjou <julien@danjou.info>