Add test for custom nonces