[test] Finish library tests.