dist: Add functional tests

Signed-off-by: Fabian Deutsch <fabiand@redhat.com>