Fixed lwp to work with test script