add interface UT for memory align check
Merge pull request #1176 from lyao2/ut_memcheck

add interface UT for memory align check