[test] use setUpBeforeClass to check official lib is setup.