Added new Test and Change test to not use Deprecated code

Push to remove code review comment.