tests: Added ability to read a list of tests, improved fail detection