For this version, you can not run
cocos command on an existing project, if you create a project with
cocos new then it will work.
To run the tests, try this one out:
python -m SimpleHTTPServer
Then in your browser, type the ip address and port python just showed, and append with /samples/js-tests/index.html, for me, it was:
This should work.