rewrite centOS tests and fix code as needed