add test for defineProperty