Update tests and fix bug with promises when no actname is provided.
Update to use jshint and a modified samle jshint config