Revert "Replaced grunt-mocha-hack with grunt-mocha-spawn"

This reverts commit 413cdea36ab6bb0255c607a9ea5fbb72a8316a6c.
Refactored api tests to mocha-as-promised style
Fix assert