[buffer.h] add static test for alignment