Fix tests and add gear archive_deployment