Add AV unit test, move some parts of test engine to common file
Fixes #46

Signed-off-by: Reese Faucette <rfaucett@cisco.com>