refactored create_application for the healthdashboard
turned out I didn't quite understand the concept whenever
used it first time
refactored tests