unit tests for high-level API, fixed LL tests, added optional connection to QE