[client][test] Nest tests for library.js