unit tests fixes + remove old deprecated packages