Use destructure form in test.py

Small refactor of the `load-all-tests` function.