[#3736] Added unit test for Provider.toString()/removed commented code