NODE-250 added test that shows correct error handling of ensureIndex