write test for mongo.interval