This commit adds test cases for random utilities. Change-Id: Ia3ff0515568e62aa8bc499d970d1b107da20a2e4