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)