Fixed mysqli connection test so it able to run outside of travis.