CP-5923: Add GPU-related helper functions to test_common.ml

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1436 from johnelse/vgpu-unit-test-basics

Add GPU-related helper functions to test_common.ml