updated deprecated usage in unit tests