move back to single file as exports and conditionally include coverage file in tests