tests: add verification of use of crypto.randomBytes