alignment test. Take a look at alignment.cpp for details.