[tests.spaces_dg] fix guards