KH-187: Unit tests for js