refined preparation tests and move to separate test class
don't extract when selection defines named function