Write application file, outline its tests