fixed some unit tests
implemented XJSContext#treatePropertyAsMethod