Remove tests from application main function and instead have a separate tests project.