added compatibility with old mongodb version
added junit assertions messages