test the toJSON extension
Add bluebird to the tests dependencies.