update LUP and add tests