add a subensemble test with function origin
Merge pull request #94 from Hudon/func-subens-test

add a subensemble test with function origin