cmake: add function to add unit test

1 job for test in 18 seconds (queued for 14 seconds)