change apt sources for debian and fixed testcases