more unit tests for js helpers #188