make tests better

1.add gitignore
2.add script: test
3.modify t.js