Corrected test and fixed EJSON.decode