ENH: Add appveyor and improve test