[PATCH RFC 3/7] selftests/nolibc: replace repetitive test structure with macro