bringing unit testing related commits to js (et-core master branch)

bringing unit testing related commits to js (et-core master branch)