improve tests and update packages