add api tests
dry up class tests
add errors test
remove api test file
fix esprima parse options
add util test