fixing compile issues on centos. fixing typos in test