Fixing issue #31 (text index on mongo 1.4) and adding a test