Completed app structure with proper function test