tests: include crypt-private.h

Use crypt-private.h instead of string.h and endian.h in tests.