unit-tests: Restore from Jenkins test.