add more tests
upgrade to latest js and run as unittest