[js] arguments: add unit test
[unix sim] close block dev file on exit