Few improvements to Matlab testing
Few improvements to Matlab testing

* use class setup/teardown so we only do it once
* combine functions to avoid call order issues

BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6,BBN-Q/libx6