fixed specs for some functions which are deprecated in otp17