Add unit tests for JS support