[js] enhance fs tests