Fix parsing empty string; update Test.js