changed to npm test
linted tests and added additional checks for execAnon