Add regression tests

Signed-off-by: Dean Pehrsson-Chapman <dean@p14n.com>