Test for invalid buffer sizes