Add basic functional tests.

Signed-off-by: crynobone <crynobone@gmail.com>