test: add support for new helper functions, skip/fail/check_dep
test: add support for new helper functions, skip/fail/check_dep

Also, make sure to exit each test with the correct exit status.

Signed-off-by: Joachim Wiberg <583c295fd7602c168ad814279bbc3894ba65f5d6@gmail.com>

troglobit/finit,troglobit/finit