adds functional test