Port old JS Spec tests to Mocha

Two changes:

 - Port old JS Spec tests to Mocha
 - Fix a bug that i noticed while porting the tests



I was wonder about some expected failure feature, but deleting a test is also good idea.