Add some more test cases, tests and some infrastructure for JHelper
package.
Merge pull request #2149 from elinw/helpertests

Add some more test cases and tests to JHelper.