meson: test: add tests from test/modules/ and test/src/ folders
Now that test/ infrastructure is ready for meson, adds the existing test from that folder.
Still draft because I want to try to reduce dependencies when it's easy to do so before merging.