properties change, implementation of the function hasRequiredProperties and comments correction
adding test script