Fix JSUnit tests