change to single file export and conditionally include instrumented main in tests for coverage