changed the testing to use mocha and actually run completely automated