Add tests as proof of concept.

Signed-off-by: Ben Corlett <bencorlett@me.com>