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

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