check if property is specified property of the function before copying
add some tests