[example/tests] Added module examples and functional tests for the apps.