Fixed EJSON stuff and corrected the test