test & error's handling