add default values for some attributes
improve tests