Added DefineProperty and fixed some of the tests