removed use of deprecated functions in unit tests