functionnal test: update and add tests