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
I guest that this (and some of the next) will require changes in the tests.  Why remove the default values?