add functional test for our case