fix broken unit tests, add support for allow_system_deps