Fix PHP-1149 tests for invalid db/collection names

Restore max length check for DB names, which was inadvertently removed when v1.5 was merged in afdf282. The max length check was originally implemented for [PHP-1149](https://jira.mongodb.org/browse/PHP-1149) in 908d7ee.