added basic test for JAS, fix