Reworked the test case as it was giving a false pass.
Updated _updatePathOptions to call setStyle with the correct options which was not working in the previous version.