fixing testcases for make distcheck
removing deprecated header and source files and fixing headers for make distcheck