Qlm library update fixes
Add some tests