extended apply functional test and docs