add guard for GPU device-typed tests