fixed de-precated func in test case