platform dependencies for max size exception tests

RUBY-676