Fixed order of dst and src args in memcpy macro.
Fixed invalid checks from test case.