Fix broken tests

Because of new direct buffer size check logic, original tests is failed.