Correct fun heads for when application is started

Add tests for starting the supervisor inside an application and not.