add functional tests at p 86