Add test for random cnonce