re-working some of the tests, abstracting out crypto functions for CI_BUILDS

Signed-off-by: Wes Young <wes@barely3am.com>