Test registering custom commands.