Adding functional tests to the pre-deploy hook (fixes #194)