update function call names in test
don't use deprecated function