remaining part of python parser tests ported to js, coverage up to 99%