add functional test to sample 10, add sample 11