modified for issue in main js and test case issue in java-framework.