Modified all Integer for int. Set ANY = -1 NONE = -2.
Add test for WhoHasResource