test defieProperty method