fixing some broken tests, adding files needed for make distcheck