remove the type assertions update the tests: the tests now check output as well as file contents separately.