meson: Add misc unit tests

v2:
has_link_argument requires meson 0.46.0
1 job for meson-unit-tests in 57 seconds (queued for 35 seconds)
Status Job ID Name Coverage
  Test
passed #63383
job

00:00:57