Added regression test for library.