fixed chai-as-promised require
added promise return using Q.ninvoke / npost, fixed spec