Add check for mongodb_version on bitwise tests

[fixes #3609]