Fixed tests after added deprecation notice.