Adapt functional tests library to lighty build