Feature unittest override

new testcase emulator.OverrideTestCase and some minor fixes to make test work as expected.
fixes issue #284 and #287. 

please comment or merge ;-)