Added defaults, has, property and matches functions and their tests