tests.mixins: Replace undefined error by a descriptive RuntimeError