Added Unit Test Cases for JS and URI methods

Added Unit Test Cases for JS and URI methods:
string escape tests and non-string to string coercing tests