tests: add support for oneof-based tests