Fix library security functional tests.