also add tests for these 2 kinds of errors for size and alignment, as the existing size check wasn't apparently tested