Added tests for JW