fix tests and validation bug;add Id method value