Fixed obsolete api calls in unit tests for version 3.8