Fixed tests after added deprecation notice.
Merged pull request #445