split testapi from bmwqemu

This makes it easier to refactor as we clearer define what the tests
are supposed to access. For this I also added functions to get and set
into %vars
My initial proposal: use the same name. Something like that was used to reflect the this same case in the qemu backend.