renamed grammar-test.js
added test framework