tests: add verification of use of crypto.randomBytes

Just something I wanted to verify, figured it was better to add it here than in my own tests.