tested null values in addProperty method