switched to cwise-compile to remove esprima dependency
added test cases