You can fork the original project, write the unit tests, then use the "Fork Queue" feature to selectively incorporate the changes by the third party into your own repository, and finally issue a pull request to your own repository, unit tests inclusive, to the original repository.